<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>login</title>
</head>
<body>
<form action="" method="post">
    {% csrf_token %}
    <p>
        <input type="text" name="username" placeholder="请在这里输入用户名">
    </p>
    <p>
        <input type="password" name="password" placeholder="请在这里输入密码">
    </p>
    <p>
        <span style="color: red; font-size: 14px;">{{ error }}</span>
    </p>
    <button>登录</button><a href="{% url 'add_user' %}">注册</a>
</form>
</body>
</html>